package com.xiao.train.business.req;

        import java.util.Date;
        import com.fasterxml.jackson.annotation.JsonFormat;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;

public class DailyTrainSeatSaveReq {

    /**
    * id
    */
    private Long id;

    /**
    * 日期
    */
            @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
                @NotNull(message = "【日期】不能为空")
    private Date date;

    /**
    * 车次编号
    */
                @NotBlank(message = "【车次编号】不能为空")
    private String trainCode;

    /**
    * 箱序
    */
                @NotNull(message = "【箱序】不能为空")
    private Integer carriageIndex;

    /**
    * 排号|01, 02
    */
                @NotBlank(message = "【排号】不能为空")
    private String row;

    /**
    * 列号|枚举[SeatColEnum]
    */
                @NotBlank(message = "【列号】不能为空")
    private String col;

    /**
    * 座位类型|枚举[SeatTypeEnum]
    */
                @NotBlank(message = "【座位类型】不能为空")
    private String seatType;

    /**
    * 同车箱座序
    */
                @NotNull(message = "【同车箱座序】不能为空")
    private Integer carriageSeatIndex;

    /**
    * 售卖情况|将经过的车站用01拼接，0表示可卖，1表示已卖
    */
                @NotBlank(message = "【售卖情况】不能为空")
    private String sell;

    /**
    * 新增时间
    */
            @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    /**
    * 修改时间
    */
            @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;

    public Long getId() {
    return id;
    }

    public void setId(Long id) {
    this.id = id;
    }

    public Date getDate() {
    return date;
    }

    public void setDate(Date date) {
    this.date = date;
    }

    public String getTrainCode() {
    return trainCode;
    }

    public void setTrainCode(String trainCode) {
    this.trainCode = trainCode;
    }

    public Integer getCarriageIndex() {
    return carriageIndex;
    }

    public void setCarriageIndex(Integer carriageIndex) {
    this.carriageIndex = carriageIndex;
    }

    public String getRow() {
    return row;
    }

    public void setRow(String row) {
    this.row = row;
    }

    public String getCol() {
    return col;
    }

    public void setCol(String col) {
    this.col = col;
    }

    public String getSeatType() {
    return seatType;
    }

    public void setSeatType(String seatType) {
    this.seatType = seatType;
    }

    public Integer getCarriageSeatIndex() {
    return carriageSeatIndex;
    }

    public void setCarriageSeatIndex(Integer carriageSeatIndex) {
    this.carriageSeatIndex = carriageSeatIndex;
    }

    public String getSell() {
    return sell;
    }

    public void setSell(String sell) {
    this.sell = sell;
    }

    public Date getCreateTime() {
    return createTime;
    }

    public void setCreateTime(Date createTime) {
    this.createTime = createTime;
    }

    public Date getUpdateTime() {
    return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
    this.updateTime = updateTime;
    }

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
    sb.append(", id=").append(id);
    sb.append(", date=").append(date);
    sb.append(", trainCode=").append(trainCode);
    sb.append(", carriageIndex=").append(carriageIndex);
    sb.append(", row=").append(row);
    sb.append(", col=").append(col);
    sb.append(", seatType=").append(seatType);
    sb.append(", carriageSeatIndex=").append(carriageSeatIndex);
    sb.append(", sell=").append(sell);
    sb.append(", createTime=").append(createTime);
    sb.append(", updateTime=").append(updateTime);
sb.append("]");
return sb.toString();
}
}
